﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace NpcFramework
{
    public static class WayPointUtils
    {


        public static int GetPointUniqueId(int wayID,int pointIndex)
        {
            return wayID * 100000 + pointIndex;
        }

        public static void BreakPointUniqueId(int uniqueId, out int wayID, out int pointIndex)
        {
            wayID = uniqueId / 100000;
            pointIndex = uniqueId % 100000;
        }
        
    }
}

